package com.atguigu.gmall.weball.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName LoginController
 * @Description TODO
 * @Author king
 * @Date 2022/11/14 19:52
 * @Version 1.0
 */
@Controller
public class LoginController {

    @GetMapping("/login.html")
    public String login(@RequestParam("originUrl") String originUrl, Model model){
        model.addAttribute("originUrl",originUrl);

        return "login";
    }

}
